// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//axios相关的配置
import axios from 'axios'
import VueAxios from 'vue-axios'
//element-ui导入
import ElementUI from 'element-ui'; //加入
import 'element-ui/lib/theme-chalk/index.css';//加入

//导入全局组件
import Power from './components/Power';
Vue.component('Power',Power);

//根请求
axios.defaults.baseURL="http://localhost/system/";

//导入自定义的工具包
import utils from './utils/utils.js'
Vue.prototype.$ = utils;

Vue.use(ElementUI);//加入
Vue.use(VueAxios, axios);
Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
